//
//  NewsViewController.m
//  PhoenixNews
//
//  Created by dllo on 16/1/16.
//  Copyright © 2016年 dllo. All rights reserved.
//
#import "SCNavTabBarController.h"
#import "NewsViewController.h"
#import "HeadlineViewController.h"
#import "RecommendViewController.h"
#import "RecreationViewController.h"
#import "MilitaryViewController.h"
#import "LPViewController.h"
#import "BelleViewController.h"
#import "GiftViewController.h"
#import "DanPinViewController.h"
@interface NewsViewController ()

@end

@implementation NewsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    HeadlineViewController *headline = [[HeadlineViewController alloc] init];
    headline.title = @"头条";
    headline.view.backgroundColor = [UIColor redColor];
    RecommendViewController *recommend = [[RecommendViewController alloc] init];
    recommend.title = @"推荐";
    recommend.view.backgroundColor = [UIColor yellowColor];
    RecreationViewController *recreation = [[RecreationViewController alloc]init];
    recreation.title = @"娱乐";
    recreation.view.backgroundColor = [UIColor blueColor];
    MilitaryViewController *military = [[MilitaryViewController alloc] init];
    military.title = @"军事";
    military.view.backgroundColor = [UIColor purpleColor];
    LPViewController *lp = [[LPViewController alloc] init];
    lp.title = @"良品";
    lp.view.backgroundColor = [UIColor grayColor];
    
    BelleViewController *belle = [[BelleViewController alloc] init];
    belle.title = @"美女";
    belle.view.backgroundColor = [UIColor redColor];
    
    SCNavTabBarController *navTabBarController = [[SCNavTabBarController alloc] init];
    GiftViewController *gift = [[GiftViewController alloc] init];
    gift.title = @"礼物";
    DanPinViewController *dan = [[DanPinViewController alloc] init];
    dan.title = @"单品";
    navTabBarController.subViewControllers = @[headline, recommend, recreation, military, lp, belle,gift, dan];
    
    
   
    navTabBarController.showArrowButton = YES;
    [navTabBarController addParentController:self];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
